﻿@model canthovieclam.Models.JobCategoryModels
@{    
    ViewBag.Title = "Index";
}

<h2>List Job Catelogy</h2>

<ul>
    @foreach(var jobCategoryInfo in Model.JobCategoryInfoList)
    {       
        <li><a href="#">@jobCategoryInfo.ParentCategory.JobCategoryName</a>       
            @if(jobCategoryInfo.ChildCategories.Count()>0)
            {    
                <ul> 
                @foreach(var childJobCategory in jobCategoryInfo.ChildCategories)
                {                              
                    <li><a href="#">@childJobCategory.JobCategoryName</a></li>     
                }                                      
                </ul>       
            
            }     
        </li>   
    }
</ul>